package com.murray.assignment.service.impl;

import com.murray.assignment.mapper.SkuGoodsMapper;
import com.murray.assignment.pojo.SkuGoods;
import com.murray.assignment.service.SkuGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Murray
 * @Date 2021/8/4
 * @Time 4:39
 */
@Service
public class SkuGoodsImpl implements SkuGoodsService {

    @Autowired
    private SkuGoodsMapper skuGoodsMapper;

    @Override
    public SkuGoods getSkuGoods(String skuProperties, Integer goodsId) {
        return skuGoodsMapper.selectBySkuPropertiesAndGoodsId(skuProperties,goodsId);
    }
}
